/*
 * @Author: your name
 * @Date: 2022-01-07 18:37:57
 * @LastEditTime: 2022-01-11 10:54:55
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \admin\src\router\page.js
 */
import * as router from "./index";
const routes = [{
        path: "/login",
        component: router.Login,
    },
    {
        path: "/register",
        component: router.Register,
    },
    {
        path: "/article/:id",
        component: router.ArticleDetail,
    },
    {
        path: "/page/:id",
        component: router.PageDetail,
    },
    {
        path: "/add/page",
        component: router.AddPage,
    },
    {
        path: "/add/article",
        component: router.AddArticle,
    },
    {
        path: "/add/synergy",
        component: router.Synergy,
    },
    {
        path: "/",
        component: router.Layout,
        children: [{
                from: "/",
                to: "/workbench",
            },
            {
                path: "/workbench",
                component: router.Workbench,
            },
            {
                path: "/allarticle",
                component: router.AllArticle,
            },
            {
                path: "/category",
                component: router.CategoryArticle,
            },
            {
                path: "/tag",
                component: router.TagArticle,
            },
            {
                path: "/page",
                component: router.PageAdmin,
            },
            {
                path: "/knowledge",
                component: router.Knowledge,
            },
            {
                path: "/poster",
                component: router.PosterAdmin,
            },
            {
                path: "/comment",
                component: router.CommentAdmin,
            },
            {
                path: "/email",
                component: router.EmailAdmin,
            },
            {
                path: "/file",
                component: router.FileAdmin,
            },
            {
                path: "/search",
                component: router.SearchHistory,
            },
            {
                path: "/visit",
                component: router.VisitStatistics,
            },
            {
                path: "/user",
                component: router.UserAdmin,
            },
            {
                path: "/person",
                component: router.PersonCenter,
            },
        ],
    },
];
export default routes;